package com.smu.recognize.service.impl;

import com.smu.recognize.dao.StaticsMapper;
import com.smu.recognize.model.Statics;
import com.smu.recognize.service.StaticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StaticsServiceImpl implements StaticsService {
    @Autowired
    StaticsMapper mapper;
    @Override
    public boolean insert(Statics statics) {
        return mapper.insert(statics);
    }

    @Override
    public boolean update(Statics statics) {
        return mapper.update(statics);
    }

    @Override
    public List<Statics> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public Statics selectOne(String date,int user_id) {
        return mapper.selectOne(date,user_id);
    }
}
